package com.sdp.right.flow.dto;

import java.util.List;
import java.util.Map;

import com.sdp.core.bizc.vo.BusinessContext;
import com.sdp.right.entity.SysEmp;
import com.sdp.right.entity.SysFlowCurrentTask;
import com.sdp.right.entity.SysFlowNodeAttributeVersion;
import com.sdp.right.entity.SysFlowNodeJumpVersion;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FlowParam {
	
	private String templateNo;
	
	private String templateName;
	
	private String instanceId;//流程实例内码
		
	private String taskId;//任务内码
	
	private String startNode;//开始任务节点
	
	private SysFlowCurrentTask currentTask;//当前任务信息
	
	private SysFlowNodeAttributeVersion currentNodeAttribute;//当前节点属性
	
	private List<SysFlowNodeJumpVersion> currentNodeJump;//当前节点跳转信息
	
	private SysFlowNodeJumpVersion nexNode;//下个节点
	
	private String approvalOpinion;//审批意见
	
	private String pass;//审批是否通过
	
	private String isEnd;//是否已经审批结束
	
	private SysFlowNodeAttributeVersion endNodeAttribute;//结束节点属性
	
	private BusinessContext businessContext;//流程自定义业务数据
	
	private Map<String,String> variable;//流程跳转用到的变量
	
	private SysEmp sysEmp;//当前登录人信息
	
	/**
	 * 设置审批人
	 * @param empNo
	 * @param empName
	 */
	public void setNodeAssignee(String empNo,String empName) {
		currentNodeAttribute.setNodeAssigneeEmpName(empName);
		currentNodeAttribute.setNodeAssigneeEmpNo(empNo);
	}

}
